/*
 *------------------------------------------------------------------------------
 * @File      :    ei_nna_md_define.h
 * @Date      :    2021-8-17
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media Interface for MDP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_NNA_SED_DEFINE_H__
#define __EI_NNA_SED_DEFINE_H__

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif

#include "ei_nna_define.h"

#define DEFAULT_NNA_SED_CONFIG_SR (16000)
#define DEFAULT_NNA_SED_CONFIG_F_MAX (8000)
#define DEFAULT_NNA_SED_CONFIG_F_MIN (0)
#define DEFAULT_NNA_SED_CONFIG_HOP_LENGTH (320)
#define DEFAULT_NNA_SED_CONFIG_N_FFT (640)
#define DEFAULT_NNA_SED_CONFIG_N_MELS (128)

typedef EI_S32 NNA_SED_CHN;

typedef struct eiNNA_SED_S {
	EI_S32 s32C;
	EI_FLOAT fSedP;
} EI_NNA_SED_S;

typedef struct eiNNA_SED_CHN_ATTR_S {
	EI_S32 s3Max;
} EI_NNA_SED_CHN_ATTR_S;

typedef struct eiNNA_SED_CONFIG_S {
	EI_CHAR *modelRootPath;

	EI_S32 s32FMax;
	EI_S32 s32FMin;
	EI_S32 s32HopLength;
	EI_S32 s32NFft;
	EI_S32 s32NMels;
	EI_S32 s32SR;

	EI_NNA_AX_FREQ_S stFreq;
	EI_NNA_SED_CHN_ATTR_S stChAttr;
} EI_NNA_SED_CONFIG_S;


#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif

#endif /* __EI_NNA_SED_DEFINE_H__ */

